package com.artist.entity;

import javax.persistence.Table;
import java.io.Serializable;
@Table(name = "test_product")
public class Product  implements Serializable {

    private static final long serialVersionUID = -6241296354331552515L;
    private Integer pid;
    private String pimage;

    public Product() {
    }

    public Product(Integer pid, String pimage) {
        this.pid = pid;
        this.pimage = pimage;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getPimage() {
        return pimage;
    }

    public void setPimage(String pimage) {
        this.pimage = pimage;
    }

    @Override
    public String toString() {
        return "product{" +
                "pid=" + pid +
                ", pimage='" + pimage + '\'' +
                '}';
    }
}
